<template>
	<view class="box">
		{{name}}
		<button type="default" @click="goto">跳转页面</button>
		{{hot}}
	</view>
</template>

<script>
	export default {
		data() {
			return {
				name: '欢迎来到长命百岁健康APP',
				hot:'这些都是热门帖子'
			}
		},
		onLoad() {

		},
		onShow() {
			console.log('onShow')
		},
		onPullDownRefresh() {

		},
		onReachBottom() {
			console.log(111)
		},
		methods: {
           goto(){
			   uni.navigateTo({
			   	url:'../detail/detail'
			   })
		   }
		}
	}
</script>

<style>
	.box {}
</style>
